Skip to content

Use the query vtable in query_feed plumbing#151853

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Zalathar:feed-vtable
Feb 3, 2026
Merged

Use the query vtable in query_feed plumbing#151853
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Zalathar:feed-vtable

Conversation

@Zalathar
Copy link
Copy Markdown
Member

The query_feed function needs to be able to do two important things with (erased) query values: hash them, and debug-print them.

Both of those are things that the query's vtable already knows how to do. So by passing in a vtable to query_feed, we can give it a nicer signature, avoid having to unerase values in the function itself, and clean up some caller-side code as well.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) merged-by-bors This PR was explicitly merged by bors. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants